package org.cnc.explain.lifecycle.hookbean;

import org.springframework.beans.PropertyValues;
import org.springframework.context.annotation.CommonAnnotationBeanPostProcessor;
import org.springframework.stereotype.Component;

/**
 * <p>
 * #TODO: desc
 * </p>
 *
 * @author zhiyong.tan
 * @since 2022-09-14
 */
@Component
public class HookCommonAnnotationBeanPostProcessor extends CommonAnnotationBeanPostProcessor {
	@Override
	public PropertyValues postProcessProperties(PropertyValues pvs, Object bean, String beanName) {
		if(PrintHelper.beanNameSatisfied(beanName)) {
			PrintHelper.printMsgWithStep("执行 CommonAnnotationBeanPostProcessor#postProcessProperties 回调, 处理JSR-250自动注入");
		}
		return super.postProcessProperties(pvs, bean, beanName);
	}
}
